/*
 * @Author: YeMiao 
 * @Date: 2018-02-20 13:01:39 
 * @Last Modified by: YeMiao
 * @Last Modified time: 2018-02-24 17:21:01
 */
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';

import { MainComponent } from './main.component';
import { HomeComponent } from './home/home.component';


const mainRouters: Routes = [
	{ path: '',
		component: MainComponent, 
		children: [
			{ path: '', redirectTo: 'home', pathMatch:'full' },
			{ path: 'home', component: HomeComponent },
			{ path: 'user', loadChildren: './user/user.module#UserModule' }
		] 
	},
]

@NgModule({
  imports: [
    RouterModule.forChild(mainRouters)
  ],
  exports: [
    RouterModule
  ]
})
export class MainRouterModule {}

    